package ooday05.JavaCodeHomework.Q1;
/** 演示Point02类第二遍 */
public class PointDemo02 {
    private int x2;
    private int y2;

    public int getX() {
        return x2;
    }
    public void setX(int x) {
        if (x2 >= 0) {
            this.x2 = x;
        }
    }

    public int getY() {
        return y2;
    }
    public void setY(int y) {
        this.y2 = y;
    }
}
